/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.d2g.realestate.webservice.client;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author d2g
 */
//"unexpected element (uri:"http//webservice_client.exchange.d2g.com.br/", local:"exchangerate"). Expected elements are <{http//webservice_client.exchange.d2g.com.br}ns2:exchangerate>"
@XmlRootElement(namespace= "http//webservice_client.exchange.d2g.com.br")
public class ExchangeRate implements Serializable {

//    private ExchangeRateItem exchangeRate;
//
//    
//    /**
//     * @return the exchangeRate
//     */
//    public ExchangeRateItem getExchangeRate() {
//        return exchangeRate;
//    }
//
//    /**
//     * @param exchangeRate the exchangeRate to set
//     */
//    public void setExchangeRate(ExchangeRateItem exchangeRate) {
//        this.exchangeRate = exchangeRate;
//    }
//
//    private static class ExchangeRateItem  {
//    @XmlElement(name = "currency")
    private String currency;
//    @XmlElement(name = "rateToGbp")
    private Double rateToGbp;
//    @XmlElement(name = "currencyDescription")
    private String currencyDescription;

    @XmlAttribute
    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public Double getRateToGbp() {
        return rateToGbp;
    }

    public void setRateToGbp(Double rateToGbp) {
        this.rateToGbp = rateToGbp;
    }

    public String getCurrencyDescription() {
        return currencyDescription;
    }

    public void setCurrencyDescription(String currencyDescription) {
        this.currencyDescription = currencyDescription;
    }

    @Override
    public String toString() {
        return "br.com.d2g.exchange.persistence.ExchangeRate[ currency=" + currency + " ]";
    }
//    }
}
